package com.ymatou.query.trading.api.parameter;

import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.List;

import com.ymttest.utils.DataUtil;

public class OrderInfo {
    
    //     下单时间
    private String AddTime;
    
    //     下单后未付款多久自动取消订单
    private BigDecimal AutoCancelOrderHours;
    
    //     订单取消原因
    private String CancelReason;
    
    //     收货人信息
    private ConsigneeInfo Consignee;
    
    //     买家信息
    private ConsumerInfo Consumer;
    
    //     订单是否已评价(分)
    private boolean Evaluated;
    
    //     订单当前状态下的可操作信息. null表示不能进行操作
    private OrderOperationInfo Operation;
    
    //     主单号
    private Integer OrderGroupId;
    
    //     订单id
    private int OrderId;
    
    //     支付信息
    private PaymentInfo Payment;
    
    //     订单来源平台
    private int Platform;
    
    //     商品信息
    private List<ProductInfo> Products;
    
    //     卖家信息
    private SellerInfo Seller;
    
    //     是否扫货订单
    private boolean Shangou;
    
    //     订单相关状态信息
    private StatusInfo Status;
    
    //     收货、退货信息
    private TransferInfo Transfer;

	public String getAddTime() {
		return AddTime;
	}

	public void setAddTime(String addTime) {
		AddTime = addTime;
	}

	public BigDecimal getAutoCancelOrderHours() {
		return AutoCancelOrderHours;
	}

	public void setAutoCancelOrderHours(BigDecimal autoCancelOrderHours) {
		AutoCancelOrderHours = autoCancelOrderHours;
	}

	public String getCancelReason() {
		return CancelReason;
	}

	public void setCancelReason(String cancelReason) {
		CancelReason = cancelReason;
	}

	public ConsigneeInfo getConsignee() {
		return Consignee;
	}

	public void setConsignee(ConsigneeInfo consignee) {
		Consignee = consignee;
	}

	public ConsumerInfo getConsumer() {
		return Consumer;
	}

	public void setConsumer(ConsumerInfo consumer) {
		Consumer = consumer;
	}

	public boolean isEvaluated() {
		return Evaluated;
	}

	public void setEvaluated(boolean evaluated) {
		Evaluated = evaluated;
	}

	public OrderOperationInfo getOperation() {
		return Operation;
	}

	public void setOperation(OrderOperationInfo operation) {
		Operation = operation;
	}

	public Integer getOrderGroupId() {
		return OrderGroupId;
	}

	public void setOrderGroupId(Integer orderGroupId) {
		OrderGroupId = orderGroupId;
	}

	public int getOrderId() {
		return OrderId;
	}

	public void setOrderId(int orderId) {
		OrderId = orderId;
	}

	public PaymentInfo getPayment() {
		return Payment;
	}

	public void setPayment(PaymentInfo payment) {
		Payment = payment;
	}

	public int getPlatform() {
		return Platform;
	}

	public void setPlatform(int platform) {
		Platform = platform;
	}

	public List<ProductInfo> getProducts() {
		return Products;
	}

	public void setProducts(List<ProductInfo> products) {
		Products = products;
	}

	public SellerInfo getSeller() {
		return Seller;
	}

	public void setSeller(SellerInfo seller) {
		Seller = seller;
	}

	public boolean isShangou() {
		return Shangou;
	}

	public void setShangou(boolean shangou) {
		Shangou = shangou;
	}

	public StatusInfo getStatus() {
		return Status;
	}

	public void setStatus(StatusInfo status) {
		Status = status;
	}

	public TransferInfo getTransfer() {
		return Transfer;
	}

	public void setTransfer(TransferInfo transfer) {
		Transfer = transfer;
	}
    

	public static void main(String[] args) {
		Class c = OrderInfo.class;
		for (Field f : c.getDeclaredFields()) {
			String s = f.getName();
			System.out.println("DataUtil.verify(expect.get"
					+ DataUtil.toUpperCaseFirstOne(s) + "(), actual.get"+DataUtil.toUpperCaseFirstOne(s)
					+ "(),\"验证orderId=[\" + expectOrderId + \"]的" + s
					+ "\");");
		}
	}
}
